package com.array.www.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 容器
 * @Created by Mr.Array
 * @Description TODO
 * @Date 2021/5/13 10:56 下午
 */
@Configuration
public class ApplicationContextConfig {

    /**
     * @LoadBalanced 负载均衡 默认是轮询模式
     * @return
     */
 //   @LoadBalanced
    @Bean
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

}
